/************************************************************
** Archivo:		FotoBodaHandler
** Autor:		
** Fecha:		16/05/2009 19:19:04
** Descripción:	Clase generada automáticamente
** Cliente:		SC
** Proyecto:	eWedding
************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

using Circo.Framework.BusinessLogic;
using Circo.Framework.BusinessLogic.Views.Filters;
using Circo.Framework.BusinessLogic.Views.Order;
using Circo.Framework.BusinessLogic.Handlers;

using SC.eWedding.Data.Entities;
using SC.eWedding.BusinessLogic.Views;


namespace SC.eWedding.BusinessLogic.Handlers
{
    public partial class FotoBodaHandler : AbstractHandler
    {
    
		#region Métodos públicos
		
		public static FotoBodaView FindById(int id)
		{
			FotoBodaEntity unaEntidad = FotoBodaEntity.FindById(id);

			if (unaEntidad == null)
				return null;
			else
				return new FotoBodaView(unaEntidad);
		}

		public static List<FotoBodaView> FindBy(List<ViewFilter> filters)
		{
			return FindBy(filters, (List<ViewFieldOrder>)null);
		}

		public static List<FotoBodaView> FindBy(List<ViewFilter> filters, ViewFieldOrder anOrder)
		{
			List<ViewFieldOrder> anOrderList = new List<ViewFieldOrder>();
			anOrderList.Add(anOrder);

			return FindBy(filters, anOrderList);
		}

		public static List<FotoBodaView> FindBy(List<ViewFilter> filters, List<ViewFieldOrder> orderList)
		{
			List<FotoBodaView> listaViews = new List<FotoBodaView>();

			List<FotoBodaEntity> listaEntitys = FotoBodaEntity.FindBy(Filter.MapViewFiltersToEntityFilters(filters), Order.MapViewOrderFieldsToFieldOrders(orderList));

			foreach (FotoBodaEntity unaEntity in listaEntitys)
				listaViews.Add(new FotoBodaView(unaEntity));

			return listaViews;
		}

		public static List<FotoBodaView> FindAll()
		{
			return FindAll((List<ViewFieldOrder>)null);
		}

		public static List<FotoBodaView> FindAll(ViewFieldOrder anOrder)
		{
			List<ViewFieldOrder> anOrderList = new List<ViewFieldOrder>();
			anOrderList.Add(anOrder);
			return FindAll(anOrderList);
		}

		public static List<FotoBodaView> FindAll(List<ViewFieldOrder> orderList)
		{
			List<FotoBodaView> listaViews = new List<FotoBodaView>();

			List<FotoBodaEntity> listaEntitys = FotoBodaEntity.FindAll(Order.MapViewOrderFieldsToFieldOrders(orderList));

			foreach (FotoBodaEntity unaEntity in listaEntitys)
				listaViews.Add(new FotoBodaView(unaEntity));

			return listaViews;
		}


		
		#endregion
		
    }

}
